package com.enzo.prms.common.taglib.pagination;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;

/**
 * @author prms1.0
 * 
 * @date:2012-6-15 ����01:55:05
 * @version :
 * 
 */
public class CheckShowAll extends BodyTagSupport {
	private static final long serialVersionUID = 912241448944123433L;

	@Override
	public int doStartTag() throws JspException {
		boolean bShowAll = CollectionTag.getRequestAttributeAsBoolean(pageContext, "pageInfo.showAll", false);
		return !bShowAll ? 1 : 0;
	}

	@Override
	public int doEndTag() throws JspException {
		// TODO Auto-generated method stub
		return 6;
	}

}
